﻿<localView:UserControlBase x:Class="VocabManager.View.AboutView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                               xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
                              xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    xmlns:local="clr-namespace:VocabManager"
                     xmlns:localView="clr-namespace:VocabManager.View"
                             
                     xmlns:localViewModel="clr-namespace:VocabManager.ViewModel"
                 
             
    d:DesignHeight="800" d:DesignWidth="480"
                          
                           >
    <localView:UserControlBase.Resources>
        <localViewModel:AboutViewModel x:Key="viewModel"></localViewModel:AboutViewModel>
    </localView:UserControlBase.Resources>
    <Grid  DataContext="{StaticResource viewModel}">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition></RowDefinition>

        </Grid.RowDefinitions>
        <ContentControl Style="{StaticResource TitleStyle}" Content="{Binding Title}" FontSize="35"></ContentControl>
        <Border Padding="4"  Grid.Row="1" BorderBrush="White" BorderThickness="2">
            <ScrollViewer >
                <TextBlock  Foreground="Wheat"  TextWrapping="Wrap"  Text="{Binding ContentText}"></TextBlock>
            </ScrollViewer>
        </Border>
    </Grid>
    <localView:UserControlBase.Projection>
        <PlaneProjection x:Name="planeProjection"
                         CenterOfRotationX="0" />
    </localView:UserControlBase.Projection>
    <localView:UserControlBase.Triggers>
        <EventTrigger>
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="planeProjection"
                                     Storyboard.TargetProperty="RotationY"
                                     From="200" To="0" Duration="0:0:0.7" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>

    </localView:UserControlBase.Triggers>
</localView:UserControlBase>
